package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdDoctorSigninSuggest;

import java.util.Date;

/**
 * <p>
 * 医生端打卡建议
 * </p>
 *
 * @author 5146
 * @since 2022-04-08
 */
@Getter
@Setter
@ApiModel(value = "医生端打卡建议详情")
public class DoctorSigninSuggestDetail {

    private Integer dataId;

    @ApiModelProperty(value = "医生Id", required = true)
    private Integer doctorId;

    private Integer teamId;

    @ApiModelProperty(value = "打卡项目:1 血糖；2血压；3运动；4用药；5 饮食；6 体重；7腰围；8尿酮；9 胰岛素；10睡眠；11总结；12生活方式；13营养素", required = true)
    private Integer signinType;

    @ApiModelProperty(value = "机构编码", required = true)
    private String orgCode;

    @ApiModelProperty(value = "建议内容", required = true)
    private String suggestContent;

    private Integer updateBy;




    public DoctorSigninSuggestDetail parseFromPo(DtrdEntRdDoctorSigninSuggest po) {
        dataId = po.getDataId();
        doctorId = po.getDoctorId();
        teamId = po.getTeamId();
        signinType = po.getSigninType();
        orgCode = po.getOrgCode();
        suggestContent = po.getSuggestContent();
        return this;
    }
}
